import {NgModule} from '@angular/core';
import {Routes, RouterModule} from '@angular/router';
import {Demo01Component} from './demo01/demo01.component';
import {Demo02Component} from './demo02/demo02.component';
import {Demo03ngforComponent} from './demo03ngfor/demo03ngfor.component';
import {Demo04LianxiComponent} from './demo04-lianxi/demo04-lianxi.component';
import {Demo05Component} from './demo05/demo05.component';
import {Demo06Component} from './demo06/demo06.component';

const routes: Routes = [
    {path: 'demo01', component: Demo01Component},
    {path: 'demo02', component: Demo02Component},
    {path: 'demo03', component: Demo03ngforComponent},
    {path: 'demo04', component: Demo04LianxiComponent},
    {path: 'demo05', component: Demo05Component},
    {path: 'demo06', component: Demo06Component},
];

@NgModule({
    imports: [RouterModule.forRoot(routes)],
    exports: [RouterModule]
})
export class AppRoutingModule {
}
